package com.audaque.springboot.foshanupload.cloudauthtrans.config;

import com.audaque.springboot.foshanupload.cloudauthtrans.interceptor.AuthHeaderTransInterceptor;
import com.audaque.springboot.foshanupload.cloudauthtrans.interceptor.LoginMdcHandlerInterceptor;
import com.audaque.springboot.foshanupload.cloudauthtrans.interceptor.SessionIdHeaderInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zgb
 * @desc ...
 * @date 2023-08-04 00:00:01
 */
@Configuration
public class CloudAuthTransInterceptorBeanConfig {

    @Bean
    public SessionIdHeaderInterceptor sessionIdHeaderInterceptor() {
        return new SessionIdHeaderInterceptor();
    }

    @Bean
    public AuthHeaderTransInterceptor authHeaderTransInterceptor() {
        return new AuthHeaderTransInterceptor();
    }

    @Bean
    public LoginMdcHandlerInterceptor loginMdcHandlerInterceptor() {
        return new LoginMdcHandlerInterceptor();
    }


}
